import { App } from 'vue';
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import { basicRoutes } from './routes';

export const router = createRouter({
	history: createWebHashHistory('/'),
	routes: basicRoutes as RouteRecordRaw[],
});

export function setupRouter(app: App<Element>) {
	app.use(router);
}
